package com.jyniubi.core.service;

import com.jyniubi.core.pojo.entity.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 数据字典 服务类
 * </p>
 *
 * @author jyzhang
 * @since 2024-04-27
 */
public interface DictService extends IService<Dict> {

    void importDicts(MultipartFile file);

    void exportDicts(HttpServletResponse response);

    List<Dict> dictsByParentId(Long parentId);

    void deleteDictById(String pId,String id);

    void saveDict(Dict dict);

    void updateByDictId(Dict dict);

    Dict getDictByDictCodeAndValue(String dickCode,Integer value);
}
